<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/common/easyui.jsp"%>
<script type="text/javascript" src="${base}/common/commonTools.js"></script>
<title>菜单管理</title>
<script type="text/javascript">
	var base = "${base}" ;
</script>
<script type="text/javascript" src="${base}/menuManager/js/menuManager.js"></script>
<style type="text/css">
</style>
</head>
<body>
	<div style="margin: 0 auto; width: 1009px; height: auto; overflow: hidden;">
		<table id='treeManager' title="菜单管理" class="easyui-treegrid"
			data-options="
                url: '${base}/menuManager/query',
                method: 'POST',
                idField: 'id',
                treeField: 'text',
				toolbar:'#menuToolBar',                
                onExpand:onExpand,
                onCollapse:onCollapse,
                onDblClickRow:dbClickRow,
                onLoadSuccess:reExpandNode
            ">
			<thead>
				<tr>
					<th data-options="field:'text',width:200,editor:'text'">Name</th>
					<th data-options="field:'id',width:200">id</th>
					<th data-options="field:'parentId',width:200,editor:'numberbox'">parentId</th>
					<th data-options="field:'displayNo',width:200,editor:'numberbox'">displayNo</th>
					<th data-options="field:'menuUrl',width:185,editor:'text'">menuUrl</th>
				</tr>
			</thead>
		</table>
	</div>
	<div id='menuToolBar'>
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onClick="javascript:addMenu();return false"></a>
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onClick="javascript:removeMenu();return false"></a>
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" onClick="javascript:update();return false"></a>
	</div>
	<div id='confirmDlg' style='width: 500px;height: 300px' >
		当前还有记录未保存，要保存吗？
	</div>
</body>
</html>